<!--
 * @Author: C.
 * @Date: 2023-05-19 16:25:06
-->
<template>
  <PageWrapper dense>
    <BasicTable @register="registerTable" />
  </PageWrapper>
</template>
<script lang="ts" setup name="Sa_Order_Items">
  // ----------------------------- 第三方引入 -----------------------------

  // ----------------------------- hooks -----------------------------
  import { useAppTable } from '/~/hooks/help/useAppTable';
  import { useI18n } from '/@/hooks/web/useI18n';
  // ----------------------------- 组件 -----------------------------
  import { BasicTable } from '/@/components/Table';
  import { PageWrapper } from '/@/components/Page';
  // ----------------------------- 其他引入 -----------------------------
  import { get_item_list } from '/@/api/work/sale/order';
  import { tableColumns, formSchemas } from './schema.data';
  //----------------------------- 变量声明区 -----------------------------

  // ----------------------------- hooks使用区 -----------------------------

  const { t } = useI18n();
  const [registerTable] = useAppTable({
    // 列表接口api
    api: get_item_list,

    title: t('routes.menu.Sa_Order'),
    columns: tableColumns,
    rowKey: 'Id',
    formConfig: {
      schemas: formSchemas,
    },
    rowSelection: { type: 'checkbox' },
  });
  // ----------------------------- 钩子函数区 -----------------------------

  //  ----------------------------- 自定义方法区 -----------------------------
</script>
<style lang="less" scoped></style>
